package com.example.jetpacktest.lifecycle

import android.util.Log
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleObserver
import androidx.lifecycle.OnLifecycleEvent

class LifecycleTest001 : LifecycleObserver {

    private val TAG: String = this.javaClass.simpleName

    @OnLifecycleEvent(Lifecycle.Event.ON_CREATE)
    fun lbCreate(){
        Log.d(TAG, "LifecycleTest001...........lbCreate()")
    }

    @OnLifecycleEvent(Lifecycle.Event.ON_START)
    fun lbStart(){
        Log.d(TAG, "LifecycleTest001...........lbStart()")
    }

    @OnLifecycleEvent(Lifecycle.Event.ON_RESUME)
    fun lbResume(){
        Log.d(TAG, "LifecycleTest001...........lbResume()")
    }

    @OnLifecycleEvent(Lifecycle.Event.ON_PAUSE)
    fun lbPause(){
        Log.d(TAG, "LifecycleTest001...........lbPause()")
    }

    @OnLifecycleEvent(Lifecycle.Event.ON_STOP)
    fun lbStop(){
        Log.d(TAG, "LifecycleTest001...........lbStop()")
    }

    @OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)
    fun lbDestroy(){
        Log.d(TAG, "LifecycleTest001...........lbDestroy()")
    }

}